import { createRouter, createWebHistory } from 'vue-router'
import  {isMobileTerminal}  from '../utils/flexible'
import  mobileRouter  from './modules/mobile/mobile-router'
import  pcRouter  from './modules/pc/pc-router'

const isMobile = isMobileTerminal.value

const router = createRouter({
  history: createWebHistory(),
  routes: isMobile?mobileRouter:pcRouter
})

export default router
